package ExtendsStudy;

import java.util.Arrays;
import java.util.PrimitiveIterator;

public class Test {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3};

        PrimitiveIterator.OfInt iterator = Arrays.stream(arr).iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
